<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table>
    <tr>
        <td>
            <a href="/toInsert">添加</a>
        </td>
    </tr>
    <tr>
        <th>编号</th>
        <th>学生名字</th>
        <th>性别</th>
        <th>班级</th>
        <th>家庭地址</th>
        <th>操作</th>
    </tr>
    </tr>
    <tr th:each="f:${li}">
        <td th:text="${f.sid}"></td>
        <td th:text="${f.sname}"></td>
        <td th:text="${f.sex}"></td>
        <td th:text="${f.classes}"></td>
        <td th:text="${f.home}"></td>
        <td>
            <a th:href="@{/delete(sid=${f.sid})}">删除</a>
            <a th:href="@{/findOne(sid=${f.sid})}">编辑</a>
        </td>
    </tr>
</table>
</body>
</html>